home *** CD-ROM | disk | FTP | other *** search
- on updateCloset
- global glClosetItemSprites
- set vWearSprite to getSpriteFromPageType()
- repeat with vClosetSprite in glClosetItemSprites
- if (the castNum of sprite vClosetSprite = the castNum of sprite vWearSprite) and the visible of sprite vWearSprite then
- set the visible of sprite vClosetSprite to 0
- next repeat
- end if
- set the visible of sprite vClosetSprite to 1
- end repeat
- end
-
- on hideCloset
- global glClosetItemSprites
- repeat with vSprite in glClosetItemSprites
- set the visible of sprite vSprite to 0
- end repeat
- end
-
- on makeNaked
- global glClosetItemSprites, gHatSprite, gGlovesSprite, gShoesSprite, gJacketSprite, gShirtSprite, gPantsSprite
- repeat with vSprite in glClosetItemSprites
- set the visible of sprite vSprite to 1
- end repeat
- set the visible of sprite gHatSprite to 0
- set the visible of sprite gGlovesSprite to 0
- set the visible of sprite gShoesSprite to 0
- set the visible of sprite gJacketSprite to 0
- set the visible of sprite gShirtSprite to 0
- set the visible of sprite gPantsSprite to 0
- updateStage()
- end
-